package com.cyys.modules.system.model.configure;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cyys.common.model.BaseBean;
import com.cyys.common.validate.Edit;
import com.cyys.common.validate.Insert;
import lombok.Data;

import javax.validation.constraints.NotBlank;


@Data
@TableName("sys_configure")
public class Configure extends BaseBean {

	@TableField(condition = SqlCondition.LIKE)
	@NotBlank(message = "名称不能为空",groups = {Edit.class, Insert.class})
	private String name;

	@TableField(updateStrategy = FieldStrategy.IGNORED)
	private String value;

	private String desp;

	private String type; //1、系统参数；2、第三方接口配置

	private Integer sort; //排序
	
}
